package val.to;

import java.util.Hashtable;

public class PasswordsStore {
	
	private Hashtable<Integer, String> mEventsHashedPasswords = new Hashtable<Integer, String>();
	
	public boolean IsSavedPasswordForEvent(Integer eventId)
	{
		return mEventsHashedPasswords.containsKey(eventId);
	}
	
	public void StorePasswordForEvent(Integer eventId, String hashedPassword)
	{
		mEventsHashedPasswords.put(eventId, hashedPassword);
	}
	
	public String LoadPasswordForEvent(Integer eventId)
	{
		return mEventsHashedPasswords.get(eventId);
	}
}
